{empty name="list"}
<div class="font14 pt20 pl20">暂无结果：{$error}</div>
{else/}
{volist name="list" id="vo"}
<div class="good-item">
    <a href="{:url('item')}" popDialog data-option="{data:{
            item:'{:base64_encode(json_encode($vo))}'
            }, layer:{shade:0,area:'60%',
            title:'{$vo.short_title}',
            btn:['前往领券','查看商品','关闭'],
            yes:function(){
                window.open('{$vo.coupon_share_url}','_blank');
                return false;
            },
            btn2:function(){
                window.open('{$vo.url}','_blank');
                return false;
            },
            }}" class="img" title="{$vo.title}">
        <img src="{$vo.pict_url}" alt="{$vo.title}">
    </a>
    <div class="goods-padding">
        <div class="title">
            <a href="{:url('item')}" popDialog data-option="{data:{
            item:'{:base64_encode(json_encode($vo))}'
            }, layer:{shade:0,area:'60%',
            title:'{$vo.short_title}',
            btn:['前往领券','查看商品','关闭'],
            yes:function(){
                window.open('{$vo.coupon_share_url}','_blank');
                return false;
            },
            btn2:function(){
                window.open('{$vo.url}','_blank');
                return false;
            },
            }}" title="{$vo.title}">
                {if condition='$vo["user_type"] eq 1'}<i class="tag tag-tmall fl" title="天猫"></i>{/if}
                {$vo.short_title}
            </a>
        </div>
        <div class="goods-num-type">
            <span class="old-price fl">原价 <i>{$vo.zk_final_price}</i></span>
            <span class="goods-num fr">月销量 <i>{$vo.volume}</i></span>
        </div>
        <div class="coupon-wrap clearfix">
            <span class="price"><i>￥</i><span>{$vo.coupon_price}</span></span>
            <b class="coupon fr"><i>{$vo.coupon_amount}</i> 元券</b>
        </div>
    </div>
</div>
{/volist}
{/empty}
<div class="pager layui-container" tankPage data-option="{container:'.goods-list', callback:scroll_top}">
    {$page}
</div>
<script>
    function scroll_top() {
        $('html, body').animate({
            scrollTop: $(".tag-wrap").offset().top
        }, 900);
    }
</script>